package 设计模式.策略模式;

public class ToyDuck extends Duck{
    @Override
    public void display() {
        System.out.println("木头玩具鸭");
    }

    @Override
    public void quack() {
        System.out.println("玩具鸭不能叫");
    }

    @Override
    public void swim() {
        System.out.println("玩具鸭不能游泳");
    }

    @Override
    public void fly() {
        System.out.println("玩具鸭不能飞翔");
    }
}
